<?php session_start();
if($_SESSION['login'] == ""){
    echo "<meta HTTP-EQUIV='Refresh' CONTENT='0;URL=/Esquina_da_TI/GUI/EfetuarLogin.php'>";
}
?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="/Esquina_da_TI/default.css" rel="stylesheet" type="text/css" media="screen" />
        <script src="/Esquina_da_TI/js/jquery-1.3.2.js" type="text/javascript"></script>
        <script src="/Esquina_da_TI/js/exibirPaginas.js" type="text/javascript"></script>
        <script src="/Esquina_da_TI/js/tituloDinamico.js" type="text/javascript"></script>
        <title>Cadastramento de Topico</title>
    </head>
    <body>
        <!--CABEÇALHO-->
        <div id="header">
            <div id="menu">
                <ul id="main">
                    <li><a href="/Esquina_da_TI/index.php"><img src="/Esquina_da_TI/images/home.png" class="menu"  title="Inicio" /><br/><b>Inicio</b></a></li>
                        <li><a href="/Esquina_da_TI/Gui/Forum.php"><img src="/Esquina_da_TI/images/forum.png" class="menu" title="Fórum"/><br/><b>Fórum</b></a></li>
                        <li><a href="javascript:exibirVerNoticia()"><img src="/Esquina_da_TI/images/noticia.png" class="menu" title="Noticia"/><br/><b>Notícias</b></a></li>
                        <li><a href="javascript:exibirVerArtigos()"><img src="/Esquina_da_TI/images/artigo.png" class="menu" title="Artigos"/><br/><b>Artigos</b></a></li>
                        <li><a href="/Esquina_da_TI/Gui/Downloads.php"><img src="/Esquina_da_TI/images/download.png" class="menu" title="Downloads"/><br/><b>Downloads</b></a></li>
                        <li><a href="/Esquina_da_TI/Gui/CadastroUsuario.php"><img src="/Esquina_da_TI/images/Cadastro.png" class="menu" title="Cadastro"/><br/><b>Cadastro</b></a></li>
                        <li><a href="/Esquina_da_TI/Gui/OportunidadeEmprego.php"><img src="/Esquina_da_TI/images/oportunidade.png" class="menu" title="Empregos"/><br/><b>Empregabilidade</b></a></li>
                        <li><a href="javascript:exibirFaleConosco()"><img src="/Esquina_da_TI/images/faleconosco.png" class="menu" title="Fale Conosco"/><br/><b>Fale Conosco</b></a></li>
                        <li><a href="javascript:favoritos()"><img src="/Esquina_da_TI/images/addFavoritos.png" class="menu" title="Add Favoritos"/><br/><b>Favoritos</b></a></li>
                </ul>
            </div>
            <div id="logo">
                <h1><a href="#"><span>Esquina da T.I.</span></a></h1>
                <p>a Tecnologia a seu alcance</p>
            </div>
        </div>
        <div id="wrapper">
            <div id="page">
                <div align="center" style="border:double">
                    <div class="post" align="center">
                        <?php
                        require_once($_SERVER["DOCUMENT_ROOT"] . '/Esquina_da_TI/Gui/Fachada.php');

                        $fachada = new Fachada();
                        $assunto = $_GET['assunto'];
                        $forum = $_GET['forum'];
                        ?>
                        <form id="formularioTopico" name="formularioTopico" method="post" action="cadastrarTopico.php?assunto=<?php echo $assunto?>&forum=<?php echo $forum?>">
                            <table class="forum" cellspacing="1" cellpadding="1">
                                <tr>
                                    <td colspan="3" class="head">Novo Topico</td>
                                </tr>
                                <tr>
                                    <td class="responder" colspan="2">Titulo:</td>
                                    <td class="forum"><input type="text" size="200px" name="titulo" id="titulo"></td>
                                </tr>
                                <tr>
                                    <td class="responder" colspan="2" rowspan="2">Texto:</td>
                                    <td class="forum">
                                        <textarea id="texto" tabindex="3" name="texto" rows="15" cols="151"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td><input type="submit" value="Criar Topico"></td>
                                </tr>                       
                            </table>
                        </form>
                    </div>
                    <a href='exibirTopicos.php?forum=<?php echo $forum?>&assunto=<?php echo $assunto?>'><font color="blue"><<<&nbsp;Voltar</font></a>
                    <br><br>
                </div>

            </div>
            <!--BARRA DO RODAPÉ-->
            <div style="clear: both;">&nbsp;</div>
        </div>
        <!--RODAPÉ-->
        <div id="footer">
            <p class="copyright">&copy;&nbsp;&nbsp;2009 All Rights Reserved &nbsp;&bull;&nbsp; Design by <a href="#">H1 Softwares</a>.</p>
            <p class="link"><a href="#">Privacy Policy</a>&nbsp;&#8226;&nbsp;<a href="#">Terms of Use</a></p>
        </div>


    </body>
</html>
